<div class="message animate-fade" ng-show="messageData.length" ng-controller="MessageCtrl">
    <div class="message-form animate-float-up" ng-repeat="item in messageData">
        <div class="message-item">
            <div class="title">{{item.title}}</div>
            <div class="text">{{item.text}}</div>
            <div class="control">
                <div class="button message-button" ng-show="item.type==2" ng-click="messageYes()">Yes</div>
                <div class="button message-button" ng-show="item.type==2" ng-click="messageNo()">No</div>
                <div class="button message-button" ng-show="item.type==1" ng-click="messageOK()">OK</div>
            </div>
        </div>
    </div>
</div>